package co.yixiang.modules.shop.repository;

import co.yixiang.modules.shop.domain.Sales;
import co.yixiang.modules.shop.domain.YxSupplier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
* @author frq
* @date 2020-06-12
*/
public interface YxSupplierRepository extends JpaRepository<YxSupplier, Integer>, JpaSpecificationExecutor<YxSupplier> {
    /**
     * 根据供应商编码查询供应商
     * @param code
     * @return
     */
    YxSupplier findByCode(String code);
}